# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=tkts
pkgver=2.0
pkgrel=0
pkgdesc="CLI single user ticketing system"
url="https://lambdacreate.com/dev/tkts"
arch="all !s390x !riscv64" #fennel is not packaged for s390x
license="GPL-3.0-only"
depends="lua5.3-lume lua5.3-lsqlite3 sqlite groff"
makedepends="fennel lua5.3-dev sqlite-dev luarocks"
source="https://gitlab.com/Durrendal/tkts/-/archive/v$pkgver/tkts-v$pkgver.tar.bz2
	correct_paths.patch"
builddir="$srcdir/tkts-v$pkgver"
options="!check" #no checks exist

prepare() {
	default_prepare
}

build() {
	make compile-bin
}

package() {
	install -Dm755 "$builddir"/src/tkts-bin "$pkgdir"/usr/bin/tkts
}

sha512sums="
cf8eaf41a7faa0146126a18d519d819e9c25ee18b45841244c0dc6d349d8b70d3e51c6e03711aa2d07332a191186e778c727bb564be38991517dabb6c55daebc  tkts-v2.0.tar.bz2
3aacc0b958a68fd5c92e0e09c4f2b5e2d8990f65709541cabcf26bd7f0580240c2a40900a5885d01fd5925261d0bad280d44d6b64d03323baa514d9e160c9156  correct_paths.patch
"
